package cn.ruanyun.backInterface.modules.myWeddingInvitation.service;

import cn.ruanyun.backInterface.common.vo.PageVo;
import cn.ruanyun.backInterface.common.vo.Result;
import cn.ruanyun.backInterface.modules.base.pojo.DataVo;
import cn.ruanyun.backInterface.modules.myWeddingInvitation.vo.MyWeddingInvitationVo;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.ruanyun.backInterface.modules.myWeddingInvitation.pojo.MyWeddingInvitation;

import java.util.Optional;

/**
 * 我的婚礼模板接口
 * @author z
 */
public interface IMyWeddingInvitationService extends IService<MyWeddingInvitation> {


    /**
     * 插入或者更新myWeddingInvitation
     * @param myWeddingInvitation pojo
     */
    Result<Object> insertOrderUpdateMyWeddingInvitation(MyWeddingInvitation myWeddingInvitation);


    /**
     * 移除myWeddingInvitation
     * @param ids param
     */
    Result<Object> removeMyWeddingInvitation(String ids);


    /**
     * 获取我的结婚模板详情
     * @param id id
     * @return MyWeddingInvitationVo
     */
    Result<MyWeddingInvitation> getMyWeddingInvitation(String id);


    /**
     * 获取我的婚礼模板列表
     * @param pageVo pagevo
     * @return MyWeddingInvitationVo
     */
    Result<DataVo<MyWeddingInvitationVo>> getMyWeddingInvitationList(PageVo pageVo);


}